package com.example.dashuju;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EntityScan("com.example.dashuju.entity")  // 手动指定实体类包
@EnableJpaRepositories("com.example.dashuju.repository")
public class DashujuApplication {

    public static void main(String[] args) {
        SpringApplication.run(DashujuApplication.class, args);
    }

}
